<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>体检预约服务平台 - 医通在线</title>
	<link href="templates/css/global.css" rel="stylesheet" type="text/css" />
	<link href="templates/css/agency.css" rel="stylesheet" type="text/css" />
    <script src="templates/js/form.js" type="text/javascript"></script>
    <script src="templates/js/common.js" type="text/javascript"></script>
    <script src="templates/js/append.js" type="text/javascript"></script>

	<meta content="" name="Keywords">
	<meta name="description" content="" />
	<!--[if IE 6]>
	<script src="../../js/ddpng.js" type="text/javascript"></script>
	<script type="text/javascript">DD_belatedPNG.fix('.ddpng');</script>
    <![endif]-->
</head>
<body>

<!--header st-->
<{include file="../templates/$newtpl/header.html"}>
<FORM style="margin-top:5px" action="/index.php?action=cart"  method="post" enctype="application/x-www-form-urlencoded" name="appendform" target="_self" id="appendform" >

<div class="row mb10 center_layout fix">
	<{include file="../templates/$newtpl/left.html"}>
	<div class="grid0 grid770">
		<div class="main_con main_nobd">
			<div class="subline subline_2 fix mb10"><h4>订单管理</h4>
				<!--
				<a class="link" href="<{$__URL__}>ownexpense">点此购买家属套餐</a>
				-->
			</div>

			<div class="list_tab mb10">
				<ul class="fix">
					<li><a <{if $status==""}> class="current" <{/if}> href="<{$__URL__}>myorder">全部订单</a></li>
					<li><a <{if $status=="1"}> class="current" <{/if}> href="<{$__URL__}>myorder&status=1">订单未支付</a></li>
					<li><a <{if $status=="2"}> class="current" <{/if}> href="<{$__URL__}>myorder&status=2">订单已支付</a></li>
					<!-- <li><a <{if $status=="3"}> class="current" <{/if}> href="<{$__URL__}>myorder&status=3">已预约</a></li> -->
					<li><a <{if $status=="5"}> class="current" <{/if}> href="<{$__URL__}>myorder&status=5">订单已退款</a></li>
					<li><a <{if $status=="6"}> class="current" <{/if}> href="<{$__URL__}>myorder&status=6">订单已关闭</a></li>
				</ul>
			</div>

			<{if $status === ''}>
				<!-- 体检订单列表 -->
				<{if $userinfo.user_enterprise_code!=$SCONFIG.BOCM_ET}>
					<table class="com_table table_gre mb10">
						<thead>
							<tr>
								<th width="39" colspan=9 style="text-align: left;padding-left:15px">体检订单</th>
							</tr>
							<tr>
								<th width="39">&nbsp;</th>
								<th width="70">订单号</th>
								<th width="140px">套餐项目</th>
								<!--
								<th width="70px">加项</th>
								-->
								<th width="100">预约人</th>
								<th width="90">订单金额</th>
								<th width="120px">下单时间</th>
								<th width="80px">状态</th>
								<th>操作</th>
							</tr>
						</thead>

						<{if $info|@count neq 0}>
							<{foreach from=$info item=ac_info}>
								<{if $ac_info.source!=3}>
									<{if $ac_info.so_type !=7}>
										<tbody>
											<!-- 如果是2015亿滋项目 和 广东农信社项目,则隐藏加项订单 -->
											<{if $userinfo.user_enterprise_code!='ET20150721072029' && $userinfo.user_enterprise_code!='ET20150703074328' }>
												<tr>
													<td>
														<{if $ac_info.status == 1}>
															<input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" />
														<{/if}>
													</td>

													<td>
														<{$ac_info.order_id}>
													</td>

													<td>
														<{if $ac_info.so_type == 2}>
															<font color="#FF0000">加项订单</font>
														<{else}>
															<{if $ac_info.p_url}>
																<{if $ac_info.source == 3}>
																	<a href="/kouqiang" target="_blank"><{$ac_info.pname}></a>
																<{else}>
																	<a href="<{$ac_info.p_url}>" target="_blank"><{$ac_info.pname}></a>
																<{/if}>
															<{else}>
																<{$ac_info.pname}>
															<{/if}>
														<{/if}>
													</td>
													
													<!--
													<td>
														<{foreach from=$ac_info.jx_list key=key item=item name=store}>
															<{$item}>&nbsp;
														<{/foreach}>
													</td>
													-->

													<td>
														<{if $ac_info.customer_name==''}>
															<{if $ac_info.status ==1}>
																未支付
															<{else}>
																未预约
															<{/if}>
														<{else}>
															<{$ac_info.customer_name}>
														<{/if}>

														<{if $ac_info.source ==2}>
															&nbsp;<font color="#FF0000">(家属)</font>
														<{/if}>
													</td>

													<td>
														¥<{$ac_info.order_price*$ac_info.goods_num}>
													</td>

													<td>
														<{$ac_info.order_time}>
													</td>

													<td>
														<{if $ac_info.status ==1}>
															<font color="#FF0000"> 未支付</font>
														<{/if}>

														<{if $ac_info.status ==2}>
															已支付
														<{/if}>

														<{if $ac_info.status ==3}>
															<font color=#0000FF>已支付</font>
														<{/if}>

														<{if $ac_info.status ==4}>
															<font color=#990066>已支付</font>
														<{/if}>

														<{if $ac_info.status ==5}>
															<font color=#ff0000>
																<font color="#993300">已退款</font>
															</font>
														<{/if}>

														<{if $ac_info.status ==6}>
															<font color=#ff0000>
																<font color="#993300">已取消</font>
															</font>
														<{/if}>
													</td>

													<td class="option">

														<{if $ac_info.so_type != 2}>
															<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a><br />
														<{else}>
															<{if $ac_info.status ==2}>
																<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a>
															<{/if}>
														<{/if}>

														<{if $ac_info.status ==1}>
															<{if $ac_info.guoqi == 0}>
																<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td">立即支付</a>
																<br/>
																<a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
																<!--
																<{if $ac_info.payment_id == 0}>
																	<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
																<{else}>
																	<a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
																<{/if}>
																-->
															<{elseif $ac_info.guoqi == 1}>
																项目已过期
															<{else}>
																套餐已过期
															<{/if}>
															<br />
														<{/if}>

														<{if $ac_info.status ==2}>
															<{if $ac_info.source ==1}>
																<{if $ac_info.guoqi == 0}>
																	<{if $user_lizhi == 2}>
																		已离职
																	<{else}>
																		<{if $ac_info.so_type != 2 }>
																			<a href="<{$__URL__}>reservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																		<{/if}>
																	<{/if}>
																<{elseif $ac_info.guoqi == 1}>
																	项目已过期
																<{else}>
																	套餐已过期
																<{/if}>
															<{/if}>

															<{if $ac_info.source ==2}>
																<{if $ac_info.guoqi == 0}>
																	<{if $ac_info.so_type != 2 }>
																		<{if $userinfo.user_enterprise_code == $SCONFIG.EATON_ET}>
																			<a href="<{$__URL__}>jsreservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																		<{else}>
																			<a href="<{$__URL__}>family_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																		<{/if}>
																	<{/if}>
																<{elseif $ac_info.guoqi == 1}>
																	项目已过期
																<{else}>
																	套餐已过期
																<{/if}>
															<{/if}>
														<{/if}>
													<!-- <{if $ac_info.status ==3}><a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a><{/if}>	 -->					
													</td>
												</tr>
											<{else}>
												<!-- 如果是2015亿滋项目,则隐藏加项订单和已取消订单 -->
												<{if $ac_info.so_type!=2 && $ac_info.status!=6}>
												<tr>
													<td>
														<{if $ac_info.status == 1}>
															<input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" />
														<{/if}>
													</td>
													<td>
														<{$ac_info.order_id}>
													</td>

													<td>
														<{if $ac_info.so_type == 2}>
															<font color="#FF0000">加项订单</font>
														<{else}>
															<{if $ac_info.p_url}>
																<{if $ac_info.source == 3}>
																	<a href="/kouqiang" target="_blank"><{$ac_info.pname}></a>
																<{else}>
																	<a href="<{$ac_info.p_url}>" target="_blank"><{$ac_info.pname}></a>
																<{/if}>
															<{else}>
																<{$ac_info.pname}>
															<{/if}>
														<{/if}>
													</td>

													<td>
														<{foreach from=$ac_info.jx_list key=key item=item name=store}>
															<{$item}>&nbsp;
														<{/foreach}>
													</td>

													<td>
														<{if $ac_info.customer_name==''}>
															<{if $ac_info.status ==1}>
																未支付
															<{else}>
																未预约
															<{/if}>
														<{else}>
															<{$ac_info.customer_name}>
														<{/if}>

														<{if $ac_info.source ==2}>
															&nbsp;<font color="#FF0000">(家属)</font>
														<{/if}>
													</td>

													<td>
														¥<{$ac_info.order_price*$ac_info.goods_num}>
													</td>

													<td>
														<{$ac_info.order_time}>
													</td>

													<td>
														<{if $ac_info.status ==1}>
															<font color="#FF0000"> 未支付</font>
														<{/if}>

														<{if $ac_info.status ==2}>
															已支付
														<{/if}>

														<{if $ac_info.status ==3}>
															<font color=#0000FF>已支付</font>
														<{/if}>

														<{if $ac_info.status ==4}>
															<font color=#990066>已支付</font>
														<{/if}>

														<{if $ac_info.status ==5}>
															<font color=#ff0000>
																<font color="#993300">已退款</font>
															</font>
														<{/if}>

														<{if $ac_info.status ==6}>
															<font color=#ff0000>
																<font color="#993300">已取消</font>
															</font>
														<{/if}>
													</td>

													<td class="option">

														<{if $ac_info.so_type != 2}>
															<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a><br />
														<{else}>
															<{if $ac_info.status ==2}>
																<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a>
															<{/if}>
														<{/if}>

														<{if $ac_info.status ==1}>
															<{if $ac_info.guoqi == 0}>
																<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td">立即支付</a>
																<br/>
																<a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
																<!--
																<{if $ac_info.payment_id == 0}>
																	<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
																<{else}>
																	<a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
																<{/if}>
																-->
															<{elseif $ac_info.guoqi == 1}>
																项目已过期
															<{else}>
																套餐已过期
															<{/if}>
															<br />
														<{/if}>

														<{if $ac_info.status ==2}>
															<{if $ac_info.source ==1}>
																<{if $ac_info.guoqi == 0}>
																	<{if $user_lizhi == 2}>
																		已离职
																	<{else}>
																		<{if $ac_info.so_type != 2 }>
																			<a href="<{$__URL__}>reservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																		<{/if}>
																	<{/if}>
																<{elseif $ac_info.guoqi == 1}>
																	项目已过期
																<{else}>
																	套餐已过期
																<{/if}>
															<{/if}>

															<{if $ac_info.source ==2}>
																<{if $ac_info.guoqi == 0}>
																	<{if $ac_info.so_type != 2 }>
																		<{if $userinfo.user_enterprise_code == $SCONFIG.EATON_ET}>
																			<a href="<{$__URL__}>jsreservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																		<{else}>
																			<a href="<{$__URL__}>family_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																		<{/if}>
																	<{/if}>
																<{elseif $ac_info.guoqi == 1}>
																	项目已过期
																<{else}>
																	套餐已过期
																<{/if}>
															<{/if}>
														<{/if}>
													<!-- <{if $ac_info.status ==3}><a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a><{/if}>	 -->					
													</td>
												</tr>
												<{/if}>
											<{/if}>
										</tbody>
									<{/if}>
								<{/if}>
							<{/foreach}>
						<{else}>
							<tbody>
								<tr >
									<td bgColor=#ffffff colspan="7" height="30px" >&nbsp;&nbsp;暂无相应订单！</td>
								</tr>
							</tbody>
						<{/if}>
					</table>
				<{/if}>
				<!-- /体检订单列表 -->

				<!-- 洗牙订单列表 -->
				<{if (isset($userinfo.user_gh) && $userinfo.user_enterprise_code=='MSD') || $userinfo.user_enterprise_code==$SCONFIG.BOCM_ET}>
					<table class="com_table table_gre mb10">
						<thead>
							<tr>
								<th width="39" colspan=8 style="text-align: left;padding-left:15px">洗牙订单</th>
							</tr>

							<tr>
								<th width="39">&nbsp;</th>
								<th width="70">订单号</th>
								<th width="140px">套餐项目</th>
								<th width="100">预约人</th>
								<th width="90">订单金额</th>
								<th width="120px">下单时间</th>
								<th width="80px">状态</th>
								<th>操作</th>
							</tr>
						</thead>

						<{if $info|@count neq 0}>
							<{foreach from=$info item=ac_info}>
								<{if $ac_info.source==3}>
									<tbody>
										<tr>
											<td>
												<{if $ac_info.status == 1}>
													<input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" />
												<{/if}>
											</td>

											<td>
												<{$ac_info.order_id}>
											</td>

											<td>
												<{if $ac_info.so_type == 2}>
													<font color="#FF0000">加项订单</font>
												<{else}>
													<{if $ac_info.p_url}>
														<{if $ac_info.source == 3}>
															<a href="/kouqiang" target="_blank"><{$ac_info.pname}></a>
														<{else}>
															<a href="<{$ac_info.p_url}>" target="_blank"><{$ac_info.pname}></a>
														<{/if}>
													<{else}>
														<{$ac_info.pname}>
													<{/if}>
												<{/if}>

												<{if $ac_info.jx_list!=''}>
													<br />
													<font color="">[加项]：</font>

													<{if $ac_info.jx_list|@count neq 0}>
														<{foreach from=$ac_info.jx_list key=key item=item name=store}>
															<{$item}>
															<{if !$smarty.foreach.store.last}>
																,
															<{/if}>
														<{/foreach}>
													<{/if}>
												<{/if}>
											</td>

											<td>
												<{if $ac_info.customer_name==''}>
													<{if $ac_info.status ==1}>
														未支付
													<{else}>
														未预约
													<{/if}>
												<{else}>
													<{$ac_info.customer_name}>
												<{/if}>

												<{if $ac_info.source ==2}>
													&nbsp;<font color="#FF0000">(家属)</font>
												<{/if}>
											</td>

											<td>
												¥<{$ac_info.order_price*$ac_info.goods_num}>
											</td>

											<td>
												<{$ac_info.order_time}>
											</td>

											<td>
												<{if $ac_info.status ==1}>
													<font color="#FF0000">
														未支付
													</font>
												<{/if}>

												<{if $ac_info.status ==2}>
													已支付
												<{/if}>

												<{if $ac_info.status ==3}>
													<font color=#0000FF>已支付</font>
												<{/if}>

												<{if $ac_info.status ==4}>
													<font color=#990066>已完成</font>
												<{/if}>

												<{if $ac_info.status ==5}>
													<font color=#ff0000>
														<font color="#993300">已退款</font>
													</font>
												<{/if}>

												<{if $ac_info.status ==6}>
													<font color=#ff0000>
														<font color="#993300">已取消</font>
													</font>
												<{/if}>

												<{if $ac_info.status ==7}>
													<font color=#990066>等待收货</font>
												<{/if}>
											</td>

											<td class="option">

												<{if $ac_info.so_type != 2}>
													<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a>
													<br />
												<{else}>
													<{if $ac_info.status ==2}>
														<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a>
													<{/if}>
												<{/if}>

												<{if $ac_info.status ==1}>
													<{if $ac_info.guoqi == 0}>
														<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td">立即支付</a>
														<br/>
														<a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
														<!--
														<{if $ac_info.payment_id == 0}>
															<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
														<{else}>
															<a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
														<{/if}>
														-->
													<{elseif $ac_info.guoqi == 1}>
														项目已过期
													<{else}>
														套餐已过期
													<{/if}>
													<br />
												<{/if}>

												<{if $ac_info.status ==2}>
													<{if $ac_info.source ==1}>
														<{if $ac_info.guoqi == 0}>
															<{if $user_lizhi == 2}>
																已离职
															<{else}>
																<{if $ac_info.so_type != 2 }>
																<a href="<{$__URL__}>reservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
																<{/if}>
															<{/if}>
														<{elseif $ac_info.guoqi == 1}>
															项目已过期
														<{else}>
															套餐已过期
														<{/if}>
													<{/if}>

													<{if $ac_info.source ==2}>
														<{if $ac_info.guoqi == 0}>
															<{if $ac_info.so_type != 2 }>
																<a href="<{$__URL__}>family_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
															<{/if}>
														<{elseif $ac_info.guoqi == 1}>
															项目已过期
														<{else}>
															套餐已过期
														<{/if}>
													<{/if}>
												<{/if}>

												<!-- 
												<{if $ac_info.status ==3}>
													<a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a>
												<{/if}>	
												-->
											</td>
										</tr>
									</tbody>
								<{/if}>
							<{/foreach}>
						<{else}>
							<tbody>
								<tr >
									<td bgColor=#ffffff colspan="7" height="30px" >&nbsp;&nbsp;暂无相应订单！</td>
								</tr>
							</tbody>
						<{/if}>
					</table>
				<{/if}>
				<!-- /洗牙订单列表 -->


				<!-- 健康评估 -->
				<{if (isset($userinfo.user_gh) && $userinfo.user_enterprise_code=='MSD') || $userinfo.user_enterprise_code==$SCONFIG.BOCM_ET}>
					<table class="com_table table_gre mb10">
						<thead>
							<tr>
								<th width="39" colspan=8 style="text-align: left;padding-left:15px">健康评估</th>
							</tr>

							<tr>
								<th width="39">&nbsp;</th>
								<th width="70">订单号</th>
								<th width="190px">套餐项目</th>
								<th width="120">订单金额</th>
								<th width="150px">下单时间</th>
								<th width="80px">状态</th>
								<th>操作</th>
							</tr>
						</thead>

						<{if $info|@count neq 0}>
							<{foreach from=$info item=ac_info}>
								<{if $ac_info.so_type==7}>
									<tbody>
										<tr>
											<td>
												<{if $ac_info.status == 1}>
													<input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" />
												<{/if}>
											</td>

											<td>
												<{$ac_info.order_id}>
											</td>

											<td>
												<a href="/jkpg" target="_blank"><{$ac_info.pname}></a>
											</td>

											<td>
												¥<{$ac_info.order_price*$ac_info.goods_num}>
											</td>

											<td>
												<{$ac_info.order_time}>
											</td>

											<td>
												<{if $ac_info.status ==1}>
													<font color="#FF0000"> 未支付</font>
												<{/if}>

												<{if $ac_info.status ==2 || $ac_info.status ==3}>
													已支付
												<{/if}>

												<{if $ac_info.status ==4}>
													<font color=#990066>已完成</font>
												<{/if}>

												<{if $ac_info.status ==5}>
													<font color=#ff0000>
														<font color="#993300">已退款</font>
													</font>
												<{/if}>

												<{if $ac_info.status ==6}>
													<font color=#ff0000>
														<font color="#993300">已取消</font>
													</font>
												<{/if}>
											</td>

											<td class="option">
												<{if $ac_info.status ==1}>
													<{if $ac_info.guoqi == 0}>
														<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td">立即支付</a>
														<br/>
														<a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
														<!--
														<{if $ac_info.payment_id == 0}>
															<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
														<{else}>
															<a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
														<{/if}>
														-->
													<{elseif $ac_info.guoqi == 1}>
														项目已过期
													<{else}>
														套餐已过期
													<{/if}>
													<br />
												<{/if}>

												<{if $ac_info.status ==2 || $ac_info.status == 3 || $ac_info.status == 4}>
													<{if $ac_info.guoqi == 0}>
														<{if $user_lizhi == 2}>
															已离职
														<{else}>
															<{if $ac_info.jkpg.report_status==2}>
																<{if $ac_info.jkpg.pdf_status==1 || $ac_info.jkpg.pdf_status==2 || $ac_info.jkpg.pdf_status==3}>
																	<img src="/templates/images/time.gif" />
																	<br/>
																	正在分析，2小时内生成报告
																<{elseif $ac_info.jkpg.pdf_status==4}>
																	<a href="<{$__URL__}>create_file_xml&reportid=<{$ac_info.jkpg.report_id}>&open=2" class="blue"><{$ac_info.jkpg.report_realname}>下载报告</a>
																<{elseif $ac_info.jkpg.pdf_status==5}>
																	报告生成失败
																<{/if}>
															<{else}>
																<a href="<{$__URL__}>file_information&orderid=<{$ac_info.order_id}>&repid=<{$ac_info.jkpg.report_id}>" class="btn_green_td">开始评估</a>
															<{/if}>
														<{/if}>
													<{elseif $ac_info.guoqi == 1}>
														项目已过期
													<{else}>
														套餐已过期
													<{/if}>
												<{/if}>
												<!-- 
													<{if $ac_info.status ==3}>
														<a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a>
													<{/if}>
												-->
											</td>
										</tr>
									</tbody>
								<{/if}>
							<{/foreach}>
						<{else}>
							<tbody>
								<tr>
									<td bgColor=#ffffff colspan="7" height="30px" >
										&nbsp;&nbsp;暂无相应订单！
									</td>
								</tr>
							</tbody>
						<{/if}>
					</table>
				<{/if}>
				<!-- /健康评估 -->
            <{else}>
				<!-- 有status订单列表 -->
				<table class="com_table table_gre mb10">
					<thead>
						<tr>
							<th width="39">&nbsp;</th>
							<th width="70">订单号</th>
							<th width="140px">套餐项目</th>
							<!--
							<th width="70px">加项</th>
							-->
							<th width="100">预约人</th>
							<th width="90">订单金额</th>
							<th width="120px">下单时间</th>
							<th width="80px">状态</th>
							<th>操作</th>
						</tr>
					</thead>
					<{if $info|@count neq 0}>
						<{foreach from=$info item=ac_info}>
							<tbody>
								<tr>
									<td>
										<{if $ac_info.status == 1}>
											<input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" />
										<{/if}>
									</td>

									<td>
										<{$ac_info.order_id}>
									</td>

									<td>
										<{if $ac_info.so_type == 2}>
											<font color="#FF0000">加项订单</font>
										<{else}>
											<{if $ac_info.p_url}>
												<{if $ac_info.source == 3}>
													<a href="/kouqiang" target="_blank"><{$ac_info.pname}></a>
												<{else}>
													<{if $ac_info.so_type==7}>
														<a href="/jkpg" target="_blank"><{$ac_info.pname}></a>
													<{else}>
														<a href="<{$ac_info.p_url}>" target="_blank"><{$ac_info.pname}></a>
													<{/if}>
												<{/if}>
											<{else}>
												<{$ac_info.pname}>
											<{/if}>
										<{/if}>
									</td>
									
									<!--
									<td>
										<{foreach from=$ac_info.jx_list key=key item=item name=store}>
											<{$item}>
											<{if !$smarty.foreach.store.last}>
											,
											<{/if}>
										<{/foreach}>
									</td>
									-->

									<td>
										<{if $ac_info.customer_name==''}>
											<{if $ac_info.status ==1}>
												未支付
											<{else}>
												<{if $ac_info.so_type==7}>
													<{$ac_info.jkpg.report_realname|default:'未预约'}>
												<{else}>
													未预约
												<{/if}>
											<{/if}>
										<{else}>
											<{$ac_info.customer_name}>
										<{/if}>

										<{if $ac_info.source ==2 and $ac_info.so_type!=7}>
											&nbsp;<font color="#FF0000">(家属)</font>
										<{/if}>
									</td>

									<td>
										¥<{$ac_info.order_price*$ac_info.goods_num}>
									</td>

									<td>
										<{$ac_info.order_time}>
									</td>

									<td>
										<{if $ac_info.status ==1}>
											<font color="#FF0000"> 未支付</font>
										<{/if}>

										<{if $ac_info.status ==2}>
											已支付
										<{/if}>

										<{if $ac_info.status ==3}>
											<font color=#0000FF>已支付</font>
										<{/if}>

										<{if $ac_info.status ==4}>
											<font color=#990066>已支付</font>
										<{/if}>

										<{if $ac_info.status ==5}>
											<font color=#ff0000>
												<font color="#993300">已退款</font>
											</font>
										<{/if}>

										<{if $ac_info.status ==6}>
											<font color=#ff0000>
												<font color="#993300">已取消</font>
											</font>
										<{/if}>
									</td>

									<td class="option">
										<{if $ac_info.so_type ==7}>

										<{elseif $ac_info.so_type!= 2}>
											<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a><br />
										<{else}>
											<{if $ac_info.status ==2}>
												<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a>
											<{/if}>
										<{/if}>

										<{if $ac_info.status ==1}>
											<{if $ac_info.guoqi == 0}>
												<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td">立即支付</a>
												<br>
												<a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
												<!--
													<{if $ac_info.payment_id == 0}>
														<a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
													<{else}>
														<a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
													<{/if}>
												-->
											<{elseif $ac_info.guoqi == 1}>
												项目已过期
											<{else}>
												套餐已过期
											<{/if}>
											<br/>
										<{/if}>

										<{if $ac_info.status ==2}>
											<{if $ac_info.source ==1}>
												<{if $ac_info.guoqi == 0}>
													<{if $user_lizhi == 2}>
														已离职
													<{else}>
														<{if $ac_info.so_type != 2 and $ac_info.so_type!=7}>
															<a href="<{$__URL__}>reservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
														<{/if}>
													<{/if}>
												<{elseif $ac_info.guoqi == 1}>
													项目已过期
												<{else}>
													套餐已过期
												<{/if}>
											<{/if}>

											<{if $ac_info.source ==2}>
												<{if $ac_info.guoqi == 0}>
													<{if $ac_info.so_type != 2 and $ac_info.so_type!=7}>
														<a href="<{$__URL__}>family_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a>
													<{/if}>
												<{elseif $ac_info.guoqi == 1}>
													项目已过期
												<{else}>
													套餐已过期
												<{/if}>
											<{/if}>
										<{/if}>

										<{if $ac_info.so_type ==7}>
											<{if $ac_info.status ==2 || $ac_info.status == 3 || $ac_info.status == 4}>
												<{if $ac_info.guoqi == 0}>
													<{if $user_lizhi == 2}>
														已离职
													<{else}>
														<{if $ac_info.jkpg.report_status==2}>
															<{if $ac_info.jkpg.pdf_status==1 || $ac_info.jkpg.pdf_status==2 || $ac_info.jkpg.pdf_status==3}>
																<img src="/templates/images/time.gif" /><br/>正在分析，2小时内生成报告
															<{elseif $ac_info.jkpg.pdf_status==4}>
																<a href="<{$__URL__}>create_file_xml&reportid=<{$ac_info.jkpg.report_id}>&open=2" class="blue"><{$ac_info.jkpg.report_realname}>下载报告</a>
															<{elseif $ac_info.jkpg.pdf_status==5}>
																报告生成失败
															<{/if}>
														<{else}>
															<a href="<{$__URL__}>file_information&orderid=<{$ac_info.order_id}>&repid=<{$ac_info.jkpg.report_id}>" class="btn_green_td">开始评估</a>
														<{/if}>
													<{/if}>
												<{elseif $ac_info.guoqi == 1}>
													项目已过期
												<{else}>
													套餐已过期
												<{/if}>
											<{/if}>
										<{/if}>
										<!--
											<{if $ac_info.status ==3}>
												<a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a>
											<{/if}>
										-->
									</td>
								</tr>
							</tbody>
						<{/foreach}>
					<{else}>
						<tbody>
							<tr>
								<td bgColor=#ffffff colspan="7" height="30px" >
									&nbsp;&nbsp;暂无相应订单！
								</td>
							</tr>
						</tbody>
					<{/if}>
			</table>
			<!-- /有status订单列表 -->
			<{/if}>

			<{if $status !=2 &&$status !=5 &&$status !=6 }>
				<table width="100%" border="0">
					<tr>
						<td><{if $total_nopay <>0}><a href="###"  onclick=CheckAll(document.appendform) class="btn_org_td_ss" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;全选</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="###" class="btn_org_td_ss" onclick=CheckAlls(document.appendform) >&nbsp;&nbsp;取消全选</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="###" onClick="submit_pay()" class="btn_org_td_ss" >&nbsp;合并付款</a><{/if}></td>
					</tr>
				</table>
			<{/if}>
			<div class="page">
		<{*$pagestring*}>
			<input name="act" type="hidden" id="act" value="myorder">
			<input name="js" type="hidden" id="js" value="3"></div><br>
		</div>
	</div>
</div>
</FORM>
<{include file="../templates/$newtpl/foot.html"}>

<!--脚本如下-->
<script src="templates/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="templates/js/jquery.switchable2.min.js" type="text/javascript"></script>
<script src="templates/js/global.js" type="text/javascript"></script>

<script type="text/javascript">
	$('#slideBox .log_box').switchable({
		triggers: $('#slideBox .tab li a'),
		panels: '.tab_con',
		triggerType: 'click'
	});
</script>

</body>
</html>